export default [
    
    {
      path: '/',
      component: () => import('../views/Index.vue'),
      meta: { keepAlive: true, title: '首页' },
      redirect: '/home',
      children: [
        
        {
          path: '/Infoshow',
          name: 'Infoshow',
          component: () => import('../views/Infoshow'),
          meta: { keepAlive: true, title: '个人信息' },
        },
        {
          path: '/home',
          name: 'main',
          component: () => import('../views/Home/Home'),
          meta: { keepAlive: true, title: '首页' },
        },
        {
          path: '/home/third',
          name: 'thirdHome',
          component: () => import('../views/Home/thirdHome'),
          meta: { keepAlive: true, title: '加盟站点实时数据' },
        },
        {
          path: '/home/amout',
          name: 'amout',
          component: () => import('../views/Home/amout'),
          meta: { keepAlive: true, title: '首页' },
        },
      ]
    },
    {
      path: '/',
      component: () => import('../views/Index.vue'),
      meta: { keepAlive: true, title: '设备管理' },
      redirect: '/home',
      children: [
        {
          path: '/site/list',
          name: 'sitelist',
          component: () => import('../views/iot/index'),
          meta: {title: '站点管理' ,keepAlive: true, btnPermissions:['iot:site:list','iot:site:add','iot:site:delete','iot:site:update']},
        },
        {
          path: '/site/pile/agreement',
          name: 'sitePileAgreement',
          component: () => import('../views/iot/pile/agreement'),
          meta: {title: '充电桩通讯协议' },
        },
        {
          path: '/site/pile',
          name: 'sitePile',
          component: () => import('../views/iot/pile/index'),
          meta: {title: '充电桩' },
          
        },
        {
          path: '/site/gun',
          name: 'siteGun',
          component: () => import('../views/iot/gun/index'),
          meta: {title: '充电枪' },
          
        },
        {
          path: '/site/rate',
          name: 'siteRate',
          component: () => import('../views/iot/rate/siteRate'),
          meta: {title: '充电站费率' },
          
        },
        {
          path: '/site/rate/seat',
          name: 'siteRateSeat',
          component: () => import('../views/iot/rate/seatRate'),
          meta: {title: '占位费率' },
          
        },
        {
          path: '/site/gun',
          name: 'siteGun',
          component: () => import('../views/iot/gun/index'),
          meta: {title: '充电枪' },
        },
        {
          path: '/extra/site/province',
          name: 'extraSiteProvince',
          component: () => import('../views/iot/extra/province/site'),
          meta: {title: '充电站-省监管信息' },
        },
        {
          path: '/extra/site/province/info',
          name: 'sitesiteprovinceinfo',
          component: () => import('../views/iot/extra/province/siteinfo'),
          meta: {title: '充电站-省监管信息-编辑' },
        },
        {
          path: '/extra/site/city',
          name: 'extrasitecity',
          component: () => import('../views/iot/extra/city/site'),
          meta: {title: '充电站-市监管信息' },
        },
        {
          path: '/extra/site/city/info',
          name: 'sitesitecityinfo',
          component: () => import('../views/iot/extra/city/siteinfo'),
          meta: {title: '充电站-市监管信息-编辑' },
        },
        {
          path: '/extra/pile/province',
          name: 'sitepileprovince',
          component: () => import('../views/iot/extra/province/pile'),
          meta: {title: '充电桩-省监管信息' },
        },
        {
          path: '/extra/pile/province/info',
          name: 'sitepileprovinceinfo',
          component: () => import('../views/iot/extra/province/pileinfo'),
          meta: {title: '充电桩-省监管信息-编辑' },
        },
        {
          path: '/extra/pile/city',
          name: 'extrapilecity',
          component: () => import('../views/iot/extra/city/pile'),
          meta: {title: '充电桩-市监管信息' },
        },
        {
          path: '/extra/pile/city/info',
          name: 'sitepilecityinfo',
          component: () => import('../views/iot/extra/city/pileinfo'),
          meta: {title: '充电桩-市监管信息-编辑' },
        },
        {
          path: '/extra/gun/province',
          name: 'extraGunProvince',
          component: () => import('../views/iot/extra/province/gun'),
          meta: {title: '充电枪-省监管信息' },
        },
        {
          path: '/extra/gun/province/info',
          name: 'sitegunprovinceinfo',
          component: () => import('../views/iot/extra/province/guninfo'),
          meta: {title: '充电枪-省监管信息-编辑' },
        },


        {
          path: '/operator/list',
          name: 'operatorlist',
          component: () => import('../views/iot/operator/index'),
          meta: {title: '运营商管理' },
          
        },
        {
          path: '/manufacturer/list',
          name: 'manufacturerlist',
          component: () => import('../views/iot/manufacturer/index'),
          meta: {title: '生产商管理' },
          
        },
        {
          path: '/cec/config',
          name: 'cecConfig',
          component: () => import('../views/iot/cec/inset'),
          meta: {title: '接入配置' },
          
        },
        {
          path: '/cec/config/out',
          name: 'cecOut',
          component: () => import('../views/iot/cec/outset'),
          meta: {title: '接出配置' },
          
        },
        
      ]
    },
    {
      path: '/',
      component: () => import('../views/Index.vue'),
      meta: { keepAlive: false, title: '订单管理' },
      redirect: '/home',
      children: [
        {
          path: '/order/list',
          name: 'orderIndex',
          component: () => import('@/views/order/list'),
          meta: { title: '订单列表' }
      },

      // refund
      {
        path: '/order/refund',
        name: 'refund',
        component: () => import('@/views/order/refund/index.vue'),
        meta: { keepAlive: false, title: '退款' }
      },
      {
        path: '/order/user/refund',
        name: 'userRefund',
        component: () => import('@/views/business/user/refund.vue'),
        meta: { keepAlive: false, title: '退款' }
      },
      {
        path: '/order/refund/record',
        name: 'refundRecord',
        component: () => import('@/views/order/refund/record.vue'),
        meta: { keepAlive: false, title: '退款记录' }
      },
      // refund
      {
        path: '/order/seat', 
        name: 'orderSeat',
        component: () => import('@/views/order/seat.vue'),
        meta: { keepAlive: false, title: '占位列表' }
      }, 
      {
        path: '/order/member/list', 
        name: 'memberList',
        component: () => import('@/views/order/member/index.vue'),
        meta: { keepAlive: false, title: '会员订单列表' }
      },  
     
      ]
    },

    {
      path: '/',
      component: () => import('../views/Index.vue'),
      meta: { keepAlive: false, title: '资源管理' },
      redirect: '/home',
      children: [
        {
          path: '/resource/task',
          name: "resourceTask",
          component: () => import("@/views/resource/task/index"),
          meta: { title: "定时任务列表" },
        },
        {
          path: '/resource/sms/template',
          name: "resourceSms",
          component: () => import("@/views/resource/sms/index"),
          meta: { title: "短信模板" },
        },
        {
          path: '/resource/voice',
          name: "resourceVoice",
          component: () => import("@/views/resource/voice/index"),
          meta: { title: "语音模板" },
        },
        {
          path: '/resource/parking',
          name: "resourceParking",
          component: () => import("@/views/resource/parking/index"),
          meta: { title: "道闸系统" },
        },
        {
          path: '/resource/agreement',
          name: "resourceAgreement",
          component: () => import("@/views/resource/agreement/index"),
          meta: { title: "协议管理" },
        },
      ]
    },
   
    {
      path: '/',
      component: () => import('../views/Index.vue'),
      meta: { keepAlive: false, title: '客户中心' },
      redirect: '/home',
      children: [
        {
          path: '/customer/user', 
          name: 'customerUser',
          component: () => import('@/views/customer/user/index.vue'),
          meta: { keepAlive: false, title: '用户列表' }
        }, 
        {
          path: '/customer/group/user',
          name: 'customerGroup',
          component: () => import('@/views/customer/group/index.vue'),
          meta: { keepAlive: false, title: '用户组' }
        }, 
        {
          path: '/customer/team/user',
          name: 'customerTeam',
          component: () => import('@/views/customer/team/index.vue'),
          meta: { keepAlive: false, title: '车队用户' }
        }, 
      ]
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/logo/Login')
    },
    {
      path: '/forget',
      name: 'forget',
      component: () => import('../views/logo/forget')
    },
    {
      path: '/lock',
      name: 'lock',
      component: () => import('../views/Lock.vue')
    },
    {
      path: '/mobile',
      name: 'mobile',
      component: () => import('../views/showMobile.vue')
    },
    
    {
      path: '*',
      name: 'Nofind',
      component: () => import('../views/404')
    },
  ]
